#!/bin/sh

sudo dpkg -i data.deb

if [ $(arch) = "x86_64" ]
    then
        wget https://libregamenight.xyz/data/pub/openttd/lignux-amd64.tar.gz
        tar -zxvf lignux-amd64.tar.gz
        cd lignux-amd64
    else
        wget https://libregamenight.xyz/data/pub/openttd/lignux-i686.tar.gz
        tar -zxvf lignux-i686.tar.gz
        cd lignux-i686
fi

echo "Time to reap the profits, now!"
echo "If everything, went smoothly, OpenTTD should now be ready-- just execute the './openttd' binary."
echo "Cheers!"
